package zl.osimall.common.mapper;

import org.apache.ibatis.annotations.Mapper;
import zl.osimall.common.bean.Category;

import java.util.List;

@Mapper
public interface CategoryMapper {
    int insert(Category c);

    int delete(Integer id);

    int update(Category c);

    Category selectById(Integer id);

    Category selectByName(String name);

    List<Category> selectAllParent();

    List<Category> selectByCondition(Category c);

    List<Category> selectByLike(Category c);

    List<Category> selectAllChildren(Integer id);

}
